package com.zhou.common.lib.util;

/**
 * @author 18576666986
 * @description
 * @createDate 2023/4/13 20:11
 */
public class RequestCopyHolder {

    private static ThreadLocal<RequestCopy> requestCopyThreadLocal = new ThreadLocal<>();


    public static void setRequestCopy(RequestCopy requestCopy) {
        requestCopyThreadLocal.set(requestCopy);
    }

    public static RequestCopy getRequestCopy() {
        return requestCopyThreadLocal.get();
    }

    public static void clear() {
        requestCopyThreadLocal.remove();
    }
}
